package db9;

public class xm114 {
    public static void main(String[] args) {
        char[] c = { '6', 's', 'd', '7', 'g'};
        int s = 0;
        int y = 0;
        for (char x : c)
            switch ((int) x / 10) {
                case 4:
                    s++;
                    break;
                case 5:
                    s++;
                    break;
                case 6:
                    y++;
                    break;
                case 7:
                    y++;
                    break;

                case 8:
                    y++;
                    break;
                case 9:
                    y++;
                    break;
                case 10:
                    y++;
                    break;
                case 11:
                    y++;
                    break;
                case 12:
                    y++;
                    break;
                default:
            }
        System.out.println("数字字符有" + s);
        System.out.println("英文字符有" + y);
    }
}
